package com.design.adapterImpl;

import com.design.ICacheAdapter;
import com.design.matter.IIR;

import java.util.concurrent.TimeUnit;

/**
 * 缓存集合B实现代理类接口
 * @author ytj
 * @date 2021/12/24
 */
public class IIRCacheAdapter implements ICacheAdapter {
    private IIR iir=new IIR();
    @Override
    public String get(String key) {
        return this.iir.get(key);
    }

    @Override
    public void set(String key, String value) {
        this.iir.set(key, value);
    }

    @Override
    public void set(String key, String value, long timeout, TimeUnit timeUnit) {
        this.iir.setExpire(key, value, timeout, timeUnit);
    }

    @Override
    public void del(String key) {
        this.iir.del(key);
    }
}
